#include <iostream>
#include <string>
using namespace std;


int main(int argc, char const *argv[])
{
    string s1 = "hello"; // 隐式调用了string类的构造函数，将const char*类型的字符串转换为string类型
    string s2;

    s2 = s1;             // 重载了赋值运算符，实现直接拷贝

    string s3 = s1 + s2;
    cout<<s3<<endl;

    if(s1 == s2)
    {
        cout<<"s1和s2相等"<<endl;
    }

    return 0;
}
